package com.crm.customers.dao.impl;

import java.util.List;
import org.springframework.stereotype.Repository;

import com.crm.base.dao.BaseDao;
import com.crm.customers.dao.ApproveItemUserDao;
import com.crm.customers.model.ApproveItem;
import com.crm.customers.model.ApproveItemUser;

@Repository("approveItemUserDao")
public class ApproveItemUserDaoImpl extends BaseDao implements ApproveItemUserDao {
	
	private static final String MAPPER_NAMESPACE = "ApproveItemUserMapper.";

	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return 0;
	}

 

	@Override
	public int insertSelective(ApproveItemUser record) {
		return insert(MAPPER_NAMESPACE+"insertSelective", record);
	}

	@Override
	public ApproveItemUser selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(ApproveItemUser record) {
		return update(MAPPER_NAMESPACE+"updateByPrimaryKeySelective", record);
	}


 
    
	@Override
	public ApproveItemUser selectCurrentApproveUser(ApproveItemUser au) {
		return selectOne(MAPPER_NAMESPACE+"selectCurrentApproveUser", au);
	}

	@Override
	public ApproveItemUser selectNextApproveUser(ApproveItemUser au) {
		return selectOne(MAPPER_NAMESPACE+"selectNextApproveUser", au);
	}



	@Override
	public int updateIsnewState(ApproveItemUser record) {
		return update(MAPPER_NAMESPACE+"updateIsnewState", record);
	}



	@Override
	public List<ApproveItemUser> selectApproveUserByFkid(ApproveItem ai) {
		return selectList(MAPPER_NAMESPACE+"selectApproveUserByFkidAll",ai);
	}
 

}
